package com.taocore.top.title.action;

import java.util.logging.Level;
import java.util.logging.Logger;

import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.taocore.top.title.service.CategoriesService;

@Results({
	@Result(name="success", type="httpheader")
})
public class UpdateCategoriesAction extends ActionBase{

	static Logger _log = Logger.getLogger(UpdateCategoriesAction.class.getName());
	
	public String execute()
	{
		try {
			CategoriesService.updateCategories();
		} catch (Exception e) {
			_log.log(Level.SEVERE, "", e);
		}
		return SUCCESS;
	}
}
